← Back to team overview

compiz team mailing list archive

[Bug 890947] Re: Unity sends initial GDK_CONFIGURE event with position as (0, 0)

 

** Description changed:

+ = SRU TESTCASE =
+ 
+ Old Behaviour:
+ 
+ 1. Run testcase
+ 2. Notice that it reports 2 sets of x and y values of 0,0
+ 
+ Fixed behaviour:
+ 
+ 1. Run testacse
+ 2. Notice that it reports 2 sets of x and y values which reflect the actual window position
+ 
+ 
  = Problem =
  
  After creating a top-level GTK widget, the window manager sends
  GDK_CONFIGURE with the position as (0,0) even though the initial
  position is already set to a different value.
  
  = Environment =
  
  * Ubuntu 11.10 (Oneiric) i386
  * Unity - 4.22.0-0ubuntu3
  
  = Impact =
  
  This causes issues for applications that rely on this GDK_CONFIGURE to
  locate their app window.
  
  = Steps to reproduce =
  
  1. Compile gdkconfig.cpp: g++ -o gdktest gdkconfig.cpp `pkg-config --libs gtk+-2.0` `pkg-config --cflags gtk+-2.0`
  2. Launch it from a terminal
  3. Observe output from terminal
  4. Click "OK" to launch a new window
  5. Observe logs, you should see something like this:
  popup window created gdkwindow -- 7063232
  GDK_CONFIGURE : window -- 7063232, x -- 250, y -- 250, width -- 200, height -- 200
  GDK_CONFIGURE : window -- 7063232, x -- 0, y -- 0, width -- 200, height -- 200
  GDK_CONFIGURE : window -- 7063232, x -- 0, y -- 0, width -- 200, height -- 200
  GDK_CONFIGURE : window -- 7063232, x -- 0, y -- 0, width -- 200, height -- 200
  GDK_CONFIGURE : window -- 7063232, x -- 251, y -- 275, width -- 200, height -- 200
  
  When running under Natty or Unity-2D, GDK_CONFIGURE is never set to 0,0.
  
  = Original text =
  
  when using unity 3d on ubuntu, after creating a top-level gtk widget, the window manager sends  GDK_CONFIGURE with position as (0,0) although I have set the initial position to some different value.
  This dose not happen on gnome/unity 2d environment. It will cause seriously issue when we rely on this event to locate our window.
  Source code attached, you could compile it and launch it from terminal, the GDK_CONFIGURE event will be printed out.

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/890947

Title:
  Unity sends initial GDK_CONFIGURE event with position as (0,0)

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/890947/+subscriptions