GNOME Bugzilla – Bug 447413
wnck_window_set_geometry doesn't work
Last modified: 2007-06-17 19:06:59 UTC
The function wnck_window_set_geometry doesn't appear to actually do anything to the window. Attaching source sample in a sec.
Created attachment 89931 [details] small c-sample calling set_geometry to no avail Sample code as promised
Hrm. It works for me. At least, with trunk. Can you try with trunk? I assume you're using an ewmh-compliant window manager :-)
I'm using metacity under Ubuntu Feisty. Will check trunk later today.
I just tried wnck trunk still nothing happens... Since I'm not really an expert on parallel lib installations I better trace out what I did... Install wnck trunk with --prefix=/opt export PKG_CONFIG_LIBDIR=/opt/lib:/usr/lib export PKG_CONFIG_PATH=/opt/lib/pkgconfig/:/usr/lib/pkgconfig/ Compile with sample program with gcc -g -Wall `pkg-config --libs --cflags libwnck-1.0 gtk+-2.0` wnck-test-set_geometry.c Validate linkage with LD_LIBRARY_PATH=/opt/lib ldd a.out | grep wnck Run sample program with LD_LIBRARY_PATH=/opt/lib ./a.out Cheers
What's the active window when you run your program? I guess it's a terminal. Is it maximized?
Yeah, I run a gnome terminal and it's not maximized. What version of metacity are you running? I have 2.18.2 here, maybe the bug is there? Also are you running my sample or is it some other way you test this? Maybe the bug is simply in my understanding of libwnck?
(In reply to comment #6) > Yeah, I run a gnome terminal and it's not maximized. > > What version of metacity are you running? I have 2.18.2 here, maybe the bug is > there? I'm running metacity 2.19.13 (I love the metacity version numbers). But it should work with older metacity too. Unfortunately, I don't have a computer with 2.18 right now to test. > Also are you running my sample or is it some other way you test this? Maybe the > bug is simply in my understanding of libwnck? Yes, I just ran your code. Hrm. Actually, the code should also move the window, right? It's only resized here.
Moving the window fails, but inside metacity. So we're back to "everything works". At least for me. Can you try with metacity trunk to see if resizing works for you?
I will try metacity trunk tomorrow. Cheers
Ok. With Metacity and libwnck both from trunk *resizing* work fine. Movement seems not to work though (as you say).
I've reported the move problem as bug 448183. *** This bug has been marked as a duplicate of 448183 ***