Bug 288741

Summary: window_gravity staticgravity windows are placed at wrong position
Product: [Plasma] kwin Reporter: Martin Schreiber <mse00000>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: test program

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 ***