twin.cpp
285 KWin::WindowInfo KWin::windowInfo( WId win, unsigned long properties, unsigned long properties2 )
318 " or the dialog must have a non-NULL parent, otherwise Qt will reset the change. Bummer." << endl;
410 TQImage img( (uchar*) ni.data, (int) ni.size.width, (int) ni.size.height, 32, 0, 0, TQImage::IgnoreEndian );
412 if ( scale && width > 0 && height > 0 &&img.size() != TQSize( width, height ) && !img.isNull() )
486 TQPixmap pm = TDEGlobal::instance()->iconLoader()->loadIcon( className.lower(), TDEIcon::Small, iconWidth,
570 XChangeProperty(tqt_xdisplay(), win, kde_wm_window_opacity, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &opacity, 1L);
580 XChangeProperty(tqt_xdisplay(), win, kde_wm_window_shadow, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &shadowSize, 1L);
783 properties |= NET::WMIconName | NET::WMVisibleName; // force, in case it will be used as a fallback
888 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2ExtendedStrut ) == 0, 176 )
938 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMWindowType ) == 0, 176 )
969 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMVisibleName ) == 0, 176 )
1002 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMVisibleIconName ) == 0, 176 )
1017 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMIconName ) == 0, 176 )
1039 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMDesktop ) == 0, 176 )
1050 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMDesktop ) == 0, 176 )
1061 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMDesktop ) == 0, 176 )
1072 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMGeometry ) == 0, 176 )
1083 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMKDEFrameStrut ) == 0, 176 )
1094 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2TransientFor ) == 0, 176 )
1105 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2GroupLeader ) == 0, 176 )
1116 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2WindowClass ) == 0, 176 )
1127 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2WindowClass ) == 0, 176 )
1138 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2WindowRole ) == 0, 176 )
1149 kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2ClientMachine ) == 0, 176 )
static WId groupLeader(WId window)
Returns the leader window for the group the given window is in, if any.
Definition: twin.cpp:327
Definition: twin.h:469
static void setStrut(WId win, int left, int right, int top, int bottom)
Definition: twin.cpp:628
static void setType(WId win, NET::WindowType windowType)
Sets the type of window win to windowType.
Definition: twin.cpp:537
static void activateWindow(WId win, long time=0)
Requests that window win is activated.
Definition: twin.cpp:237
static void setCurrentDesktop(int desktop)
Convenience function to set the current desktop to desktop.
Definition: twin.cpp:665
Definition: netwm_def.h:195
static void setOnAllDesktops(WId win, bool b)
Sets window win to be present on all virtual desktops if is true.
Definition: twin.cpp:584
static int currentDesktop()
Convenience function to access the current desktop.
Definition: twin.cpp:641
unsigned long state() const
Returns the window's state flags (see the NET::State enum for details).
Definition: twin.cpp:863
static void clearState(WId win, unsigned long state)
Clears the state of window win from state.
Definition: twin.cpp:553
static bool allowedActionsSupported()
Returns true if the WM announces which actions it allows for windows.
Definition: twin.cpp:1223
static void setUserTime(WId win, long time)
Sets user timestamp time on window win.
Definition: twin.cpp:277
static WId transientFor(WId window)
Returns the WM_TRANSIENT_FOR property for the given window, i.e.
Definition: twin.cpp:291
bool error(bool sync) const
This function returns true if the error flag is set (i.e.
WindowInfo(WId window, unsigned long properties, unsigned long properties2)
Reads all the info about the given window.
Definition: twin.cpp:763
static void setOpacity(WId win, uint percent)
Sets the opacity of window win to percetage percent.
Definition: twin.cpp:561
TQString visibleIconName() const
Returns the visible name of the window that should be shown in taskbar and all other "iconic" represe...
Definition: twin.cpp:999
static bool compositingActive()
Returns true if a compositing manager is running (i.e.
Definition: twin.cpp:146
bool valid(bool withdrawn_is_valid=false) const
Returns false if this window info is not valid (most probably the given window doesn't exist).
Definition: twin.cpp:849
static void setCurrentDesktopViewport(int desktop, TQPoint viewport)
Convenience function to set the current viewport to viewport.
Definition: twin.cpp:673
TQString iconName() const
Returns the name of the window that should be shown in taskbar and all other "iconic" representations...
Definition: twin.cpp:1014
static void setExtendedStrut(WId win, int left_width, int left_start, int left_end, int right_width, int right_start, int right_end, int top_width, int top_start, int top_end, int bottom_width, int bottom_start, int bottom_end)
Sets the strut of window win to to left width ranging from left_start to left_end on the left edge,...
Definition: twin.cpp:605
static void setState(WId win, unsigned long state)
Sets the state of window win to state.
Definition: twin.cpp:545
NET::WindowType windowType(int supported_types) const
Returns the window type of this window (see NET::WindowType).
Definition: twin.cpp:935
static void setMainWindow(TQWidget *subwindow, WId mainwindow)
Sets the parent window of subwindow to be mainwindow.
Definition: twin.cpp:305
static void setOnDesktop(WId win, int desktop)
Moves window win to desktop desktop.
Definition: twin.cpp:597
NETExtendedStrut extendedStrut() const
Returns the window extended (partial) strut.
Definition: twin.cpp:885
static WindowInfo windowInfo(WId win, unsigned long properties=0, unsigned long properties2=0)
Returns information about window win.
Definition: twin.cpp:285
TQCString clientMachine() const
Returns the client machine for the window (i.e.
Definition: twin.cpp:1146
bool actionSupported(NET::Action action) const
Returns true if the given action is currently supported for the window by the window manager.
Definition: twin.cpp:1157
static void setIcons(WId win, const TQPixmap &icon, const TQPixmap &miniIcon)
Sets an icon and a miniIcon on window win.
Definition: twin.cpp:515
TQString name() const
Returns the name of the window, as specified by the application, without any modifications.
Definition: twin.cpp:978
bool isOnCurrentDesktop() const
Returns true if the window is on the currently active virtual desktop.
Definition: twin.cpp:1027
static TQPixmap icon(WId win, int width=-1, int height=-1, bool scale=false)
Returns an icon for window win.
Definition: twin.cpp:393
static void demandAttention(WId win, bool set=true)
When application finishes some operation and wants to notify the user about it, it can call demandAtt...
Definition: twin.cpp:269
bool send(const TQCString &fun)
static TQString readNameProperty(WId window, unsigned long atom)
Function that reads and returns the contents of the given text property (WM_NAME, WM_ICON_NAME,...
Definition: twin.cpp:1237
TQPixmap loadIcon(const TQString &name, TDEIcon::Group group, int size=0, int state=TDEIcon::DefaultState, TQString *path_store=0L, bool canReturnNull=false) const
Loads an icon.
Definition: kiconloader.cpp:583
static void setShadowSize(WId win, uint percent)
Sets the shadowsize of window win to percetage percent.
Definition: twin.cpp:575
WId groupLeader() const
Returns the leader window for the group the window is in, if any.
Definition: twin.cpp:1102
NET::MappingState mappingState() const
Returns the mapping state of the window (see NET::MappingState).
Definition: twin.cpp:874
TQCString windowClassClass() const
Returns the class component of the window class for the window (i.e.
Definition: twin.cpp:1113
static void deIconifyWindow(WId win, bool animation=true)
DeIconifies a window.
Definition: twin.cpp:697
int desktop() const
Returns the virtual desktop this window is on (NET::OnAllDesktops if the window is on all desktops).
Definition: twin.cpp:1058
bool isOnDesktop(int desktop) const
Returns true if the window is on the given virtual desktop.
Definition: twin.cpp:1036
static void setSystemTrayWindowFor(WId trayWin, WId forWin)
Makes trayWin a system tray window for forWin.
Definition: twin.cpp:221
TQRect geometry() const
Returns the position and size of the window contents.
Definition: twin.cpp:1069
static void forceActiveWindow(WId win, long time=0)
Sets window win to be the active window.
Definition: twin.cpp:249
bool onAllDesktops() const
Returns true if the window is on all desktops (equal to desktop()==NET::OnAllDesktops).
Definition: twin.cpp:1047
static int numberOfDesktops()
Convenience function to access the number of desktops.
Definition: twin.cpp:653
TQCString windowClassName() const
Returns the name component of the window class for the window (i.e.
Definition: twin.cpp:1124
WId transientFor() const
Returns the WM_TRANSIENT_FOR property for the window, i.e.
Definition: twin.cpp:1091