gdk.X11

Undocumented in source.

Public Imports

gdk.c.types
public import gdk.c.types;
gtkc.gdktypes
public import gtkc.gdktypes;

Members

Functions

getDesktop
uint getDesktop(Window window)

Gets the number of the workspace window is on.

getXid
uint getXid(Window window)

Returns the X resource (window) belonging to a gdk.Window

lookupForDisplay
Window lookupForDisplay(Display display, uint window)

Looks up the gdk.Window that wraps the given native window handle.

moveToCurrentDesktop
void moveToCurrentDesktop(Window window)

Moves the window to the correct workspace when running under a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification. Will not do anything if the window is already on all workspaces.

moveToDesktop
void moveToDesktop(Window window, uint desktop)

Moves the window to the given workspace when running unde a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification.

setFrameExtents
void setFrameExtents(Window window, int left, int right, int top, int bottom)

This is the same as Window.setShadowWidth but it only works on GdkX11Window.

setFrameSyncEnabled
void setFrameSyncEnabled(Window window, bool frameSyncEnabled)

This function can be used to disable frame synchronization for a window. Normally frame synchronziation will be enabled or disabled based on whether the system has a compositor that supports frame synchronization, but if the window is not directly managed by the window manager, then frame synchronziation may need to be disabled. This is the case for a window embedded via the XEMBED protocol.

setHideTitlebarWhenMaximized
void setHideTitlebarWhenMaximized(Window window, bool hideTitlebarWhenMaximized)

Set a hint for the window manager, requesting that the titlebar should be hidden when the window is maximized.

setThemeVariant
void setThemeVariant(Window window, string variant)

GTK+ applications can request a dark theme variant. In order to make other applications - namely window managers using GTK+ for themeing - aware of this choice, GTK+ uses this function to export the requested theme variant as _GTK_THEME_VARIANT property on toplevel windows.

setUserTime
void setUserTime(Window window, uint timestamp)

The application can use this call to update the _NET_WM_USER_TIME property on a toplevel window. This property stores an Xserver time which represents the time of the last user input event received for this window. This property may be used by the window manager to alter the focus, stacking, and/or placement behavior of windows when they are mapped depending on whether the new window was created by a user action or is a "pop-up" window activated by a timer or some other event.

setUtf8Property
void setUtf8Property(Window window, string name, string value)

This function modifies or removes an arbitrary X11 window property of type UTF8_STRING. If the given window is not a toplevel window, it is ignored.