Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Upgrade Gtk2 to Gtk3, and Gnome2::Wnck breaksby Anonymous Monk |
on Dec 30, 2018 at 09:25 UTC ( [id://1227818]=note: print w/replies, xml ) | Need Help?? |
>Hi, what exactly are you trying to do with Gnome2::Wnck ? Window tiling on multiple workspaces. Firstly, I use WNCK get a list of workspaces and their sizes. Then I create a test Gtk2::Window, size 100x100. Then I use WNCK to get the actual size of the window. This gives me the size of window controls. Then I draw a test window in the top left/bottom right corners of the window. Then I use WNCK to get the actual size/position of the window. This gives me the size and position of taskbars/panels, which gives me the size of the available workspace. Specifically, these are the operations I use. I have never found any alternative to WNCK, and of course finding something that works on MS Windows as well as Linux is just a foolish pipe dream :) Get the default screen and workspace
Get remaining workspaces
Get the size of a workspace
Move a window to a workspace $wnckWin->move_to_workspace($workspace);Get a window's current screen $screen = $wnckWin->get_screen();Get the system name/number for a workspace
Get/set the size and position of the window
Minimise/unminimise windows
Given a WNCK window, find the equivalent Gtk2 window
Given a Gtk window, find the equivalent WNCK window
Find the WNCK window for "Notepad" or "Firefox", or whatever
In Section
Seekers of Perl Wisdom
|
|