After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 447413 - wnck_window_set_geometry doesn't work
wnck_window_set_geometry doesn't work
Status: RESOLVED DUPLICATE of bug 448183
Product: libwnck
Classification: Core
Component: general
2.18.x
Other Linux
: Normal normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-14 06:52 UTC by Mikkel Kamstrup Erlandsen
Modified: 2007-06-17 19:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
small c-sample calling set_geometry to no avail (1.14 KB, text/plain)
2007-06-14 06:55 UTC, Mikkel Kamstrup Erlandsen
Details

Description Mikkel Kamstrup Erlandsen 2007-06-14 06:52:14 UTC
The function wnck_window_set_geometry doesn't appear to actually do anything to the window.

Attaching source sample in a sec.
Comment 1 Mikkel Kamstrup Erlandsen 2007-06-14 06:55:01 UTC
Created attachment 89931 [details]
small c-sample calling set_geometry to no avail

Sample code as promised
Comment 2 Vincent Untz 2007-06-14 08:26:49 UTC
Hrm. It works for me. At least, with trunk. Can you try with trunk? I assume you're using an ewmh-compliant window manager :-)
Comment 3 Mikkel Kamstrup Erlandsen 2007-06-14 08:39:34 UTC
I'm using metacity under Ubuntu Feisty. Will check trunk later today.
Comment 4 Mikkel Kamstrup Erlandsen 2007-06-14 09:26:41 UTC
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
Comment 5 Vincent Untz 2007-06-14 09:54:46 UTC
What's the active window when you run your program? I guess it's a terminal. Is it maximized?
Comment 6 Mikkel Kamstrup Erlandsen 2007-06-14 21:33:13 UTC
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?
Comment 7 Vincent Untz 2007-06-15 08:23:28 UTC
(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.
Comment 8 Vincent Untz 2007-06-16 11:56:21 UTC
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?
Comment 9 Mikkel Kamstrup Erlandsen 2007-06-16 13:07:28 UTC
I will try metacity trunk tomorrow.

Cheers
Comment 10 Mikkel Kamstrup Erlandsen 2007-06-17 19:00:29 UTC
Ok. With Metacity and libwnck both from trunk *resizing* work fine. Movement seems not to work though (as you say).
Comment 11 Vincent Untz 2007-06-17 19:06:59 UTC
I've reported the move problem as bug 448183.

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