GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Oct 22, 2014 4:49 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Moving non decorated window using code.
PostPosted: Mon Jul 02, 2007 1:28 am 
Offline

Joined: Mon Jul 02, 2007 1:27 am
Posts: 3
I have a GTKWindow that I have created and then afterwards attempted to move using gtk_window_move(), I have the window set so that if I click on it it toggles the window's decorations, the default being none. For production I wish to have the window have no decorations, but If I configure the window in that manner I it won't move. It is an odd occurance considering alt-dragging still functions.

Does anyone have any suggestions on how to move the window? Should I attempt with libwnck (unstable I read)?

Thanks for any advice.

-- Dan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 7:00 pm 
Offline
GTK+ Guru

Joined: Thu Jun 21, 2007 1:52 pm
Posts: 198
Location: Wilkes Barre Pa
Im not sure how to do this with gdk but you could just use xlib

Here is a tutorial on having a window move itself around the screen etc.
http://users.actcom.co.il/~choo/lupg/tu ... w_ops_move

I don't think libwnck is going to help you out much from what i know of it its only purpose is for building tasklists and desktop pagers.

Another way to possibly move a window around that has no decoration is to just
alt + spacebar
or ctrl + spacebar but this will only work if your window manager supports it.

So this is what i would do.

When you click on the window that has no frame add in some xlib code to get the window "id"
Then assign a xlib mouse move event to have the window follow your mouse cursor.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group