PDA

View Full Version : get workspaces clicked event



saman_artorious
29th December 2013, 14:20
It is decided when the workspaces button (which divides the screen into 4 equal parts) is clicked in my system (linux), some part of the ui needs to hide and the other maximized.
I want to know how to get the event of the workspaces button.
When the button is clicked again and a desktop is chosen, the modification is reversed, the menu should again appear in the ui.

any has any idea?

wysota
29th December 2013, 19:07
What is a "workspaces button"?

saman_artorious
30th December 2013, 11:19
What is a "workspaces button"?
When you click it it divides the screen to equal parts. It is done by the system desktop. I found that to get the handler of that I need to use the following header and add lx11 lib.


#ifdef Q_WS_X11 //only define on Qt 4.X
#include <QX11Info> //Only on Qt 4.X , return expected in Qt 5.1
#include <X11/Xlib.h>
#include <X11/Xatom.h>