Bug 288741 - window_gravity staticgravity windows are placed at wrong position
Summary: window_gravity staticgravity windows are placed at wrong position
Status: RESOLVED DUPLICATE of bug 278981
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 17:30 UTC by Martin Schreiber
Modified: 2011-12-12 02:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
test program (1.47 KB, application/octet-stream)
2011-12-11 17:30 UTC, Martin Schreiber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schreiber 2011-12-11 17:30:05 UTC
Created attachment 66636 [details]
test program

Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

The attached program sets the sizehints parameter window_gravity to staticgravity. KDE4 ignores the hint, xwininfo returns
"
xwininfo: Window id: 0x6600002 (has no name)

  Absolute upper-left X:  54
  Absolute upper-left Y:  68
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 200
  Height: 100
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: StaticGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +54+68  -770+68  -770-600  +54-600
  -geometry 200x100+54+68
"
The same program under KDE 3.5 shows the window at the correct position, xwininfo returns:
"
xwininfo: Window id: 0x3800002 (has no name)

  Absolute upper-left X:  50
  Absolute upper-left Y:  50
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 200
  Height: 100
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: StaticGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +50+50  -774+50  -774-618  +50-618
  -geometry 200x100+50+50
"
The testproject is made with MSEide+MSEgui
http://gitorious.org/mseide-msegui
the testproject is here
http://gitorious.org/mseuniverse/mseuniverse/trees/master/testcase/window/staticgravity

Reproducible: Always

Steps to Reproduce:
./.

Actual Results:  
./.

Expected Results:  
./.
Comment 1 Thomas Lübking 2011-12-12 02:17:07 UTC
same reason as in dupe, thanks for the report - ultimately lead to the fix.

*** This bug has been marked as a duplicate of bug 278981 ***