GdkX11.X11Surface¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GdkX11.X11Surface(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod lookup_for_display(display, window)[source]¶
- Parameters:
display (
GdkX11.X11Display
) – theGdkDisplay
corresponding to the window handlewindow (
int
) – an Xlib Window
- Returns:
the
GdkSurface
wrapper for the native window- Return type:
Looks up the
GdkSurface
that wraps the given native window handle.
- get_desktop()[source]¶
- Returns:
the current workspace of self
- Return type:
Gets the number of the workspace self is on.
- get_group()[source]¶
- Returns:
The group of this surface;
- Return type:
Gdk.Surface
orNone
Returns the group this surface belongs to.
- get_xid()[source]¶
- Returns:
the ID of drawable’s X resource.
- Return type:
Returns the X resource (surface) belonging to a
GdkSurface
.
- move_to_current_desktop()[source]¶
Moves the surface 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 surface is already on all workspaces.
- move_to_desktop(desktop)[source]¶
- Parameters:
desktop (
int
) – the number of the workspace to move the surface to
Moves the surface to the given workspace when running unde a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints specification.
- set_frame_sync_enabled(frame_sync_enabled)[source]¶
- Parameters:
frame_sync_enabled (
bool
) – whether frame-synchronization should be enabled
This function can be used to disable frame synchronization for a surface. Normally frame synchronziation will be enabled or disabled based on whether the system has a compositor that supports frame synchronization, but if the surface is not directly managed by the window manager, then frame synchronziation may need to be disabled. This is the case for a surface embedded via the XEMBED protocol.
- set_group(leader)[source]¶
- Parameters:
leader (
Gdk.Surface
) – aGdkSurface
Sets the group leader of self to be leader. See the ICCCM for details.
- set_skip_pager_hint(skips_pager)[source]¶
-
Sets a hint on self that pagers should not display it. See the EWMH for details.
- set_skip_taskbar_hint(skips_taskbar)[source]¶
-
Sets a hint on self that taskbars should not display it. See the EWMH for details.
- set_theme_variant(variant)[source]¶
- Parameters:
variant (
str
) – the theme variant to export
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 surfaces.
Note that this property is automatically updated by GTK, so this function should only be used by applications which do not use GTK to create toplevel surfaces.
- set_urgency_hint(urgent)[source]¶
-
Sets a hint on self that it needs user attention. See the ICCCM for details.
- set_user_time(timestamp)[source]¶
- Parameters:
timestamp (
int
) – An XServer timestamp to which the property should be set
The application can use this call to update the _NET_WM_USER_TIME property on a toplevel surface. This property stores an Xserver time which represents the time of the last user input event received for this surface. This property may be used by the window manager to alter the focus, stacking, and/or placement behavior of surfaces when they are mapped depending on whether the new surface was created by a user action or is a “pop-up” surface activated by a timer or some other event.
Note that this property is automatically updated by GDK, so this function should only be used by applications which handle input events bypassing GDK.