• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • kdeui
  • windowmanagement
Macros | Functions | Variables
netwm.cpp File Reference
#include "netwm.h"
#include "netwm_p.h"
#include <QtGui/QWidget>
#include <QtGui/qx11info_x11.h>
#include <kwindowsystem.h>
#include <kxutils.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <X11/Xmd.h>

Go to the source code of this file.

Macros

#define CHECK_TYPE_MASK(type)
 

Functions

static void create_netwm_atoms (Display *d)
 
static char * nstrdup (const char *s1)
 
static char * nstrndup (const char *s1, int l)
 
static Window * nwindup (const Window *w1, int n)
 
static void readIcon (Display *display, Window window, Atom property, NETRArray< NETIcon > &icons, int &icon_count)
 
static void refdec_nri (NETRootInfoPrivate *p)
 
static void refdec_nwi (NETWinInfoPrivate *p)
 
static int wcmp (const void *a, const void *b)
 

Variables

static Atom kde_net_wm_activities = 0
 
static Atom kde_net_wm_block_compositing = 0
 
static Atom kde_net_wm_frame_overlap = 0
 
static Atom kde_net_wm_frame_strut = 0
 
static Atom kde_net_wm_shadow = 0
 
static Atom kde_net_wm_temporary_rules = 0
 
static Atom kde_net_wm_window_type_override = 0
 
static Atom kde_net_wm_window_type_topmenu = 0
 
const long MAX_PROP_SIZE = 100000
 
static Atom net_active_window = 0
 
static Atom net_client_list = 0
 
static Atom net_client_list_stacking = 0
 
static Atom net_close_window = 0
 
static Atom net_current_desktop = 0
 
static Atom net_desktop_geometry = 0
 
static Atom net_desktop_layout = 0
 
static Atom net_desktop_names = 0
 
static Atom net_desktop_viewport = 0
 
static Atom net_frame_extents = 0
 
static Atom net_moveresize_window = 0
 
static Atom net_number_of_desktops = 0
 
static Atom net_restack_window = 0
 
static Atom net_showing_desktop = 0
 
static Atom net_startup_id = 0
 
static Atom net_supported = 0
 
static Atom net_supporting_wm_check = 0
 
static Atom net_virtual_roots = 0
 
static Atom net_wm_action_change_desk = 0
 
static Atom net_wm_action_close = 0
 
static Atom net_wm_action_fullscreen = 0
 
static Atom net_wm_action_max_horiz = 0
 
static Atom net_wm_action_max_vert = 0
 
static Atom net_wm_action_minimize = 0
 
static Atom net_wm_action_move = 0
 
static Atom net_wm_action_resize = 0
 
static Atom net_wm_action_shade = 0
 
static Atom net_wm_action_stick = 0
 
static Atom net_wm_allowed_actions = 0
 
static Atom net_wm_desktop = 0
 
static Atom net_wm_extended_strut = 0
 
static Atom net_wm_full_placement = 0
 
static Atom net_wm_fullscreen_monitors = 0
 
static Atom net_wm_handled_icons = 0
 
static Atom net_wm_icon = 0
 
static Atom net_wm_icon_geometry = 0
 
static Atom net_wm_icon_name = 0
 
static Atom net_wm_moveresize = 0
 
static Atom net_wm_name = 0
 
static Atom net_wm_pid = 0
 
static Atom net_wm_ping = 0
 
static Atom net_wm_state = 0
 
static Atom net_wm_state_above = 0
 
static Atom net_wm_state_below = 0
 
static Atom net_wm_state_demands_attention = 0
 
static Atom net_wm_state_fullscreen = 0
 
static Atom net_wm_state_hidden = 0
 
static Atom net_wm_state_max_horiz = 0
 
static Atom net_wm_state_max_vert = 0
 
static Atom net_wm_state_modal = 0
 
static Atom net_wm_state_shaded = 0
 
static Atom net_wm_state_skip_pager = 0
 
static Atom net_wm_state_skip_taskbar = 0
 
static Atom net_wm_state_stays_on_top = 0
 
static Atom net_wm_state_sticky = 0
 
static Atom net_wm_strut = 0
 
static Atom net_wm_take_activity = 0
 
static Atom net_wm_user_time = 0
 
static Atom net_wm_visible_icon_name = 0
 
static Atom net_wm_visible_name = 0
 
static Atom net_wm_window_opacity = 0
 
static Atom net_wm_window_type = 0
 
static Atom net_wm_window_type_combobox = 0
 
static Atom net_wm_window_type_desktop = 0
 
static Atom net_wm_window_type_dialog = 0
 
static Atom net_wm_window_type_dnd = 0
 
static Atom net_wm_window_type_dock = 0
 
static Atom net_wm_window_type_dropdown_menu = 0
 
static Atom net_wm_window_type_menu = 0
 
static Atom net_wm_window_type_normal = 0
 
static Atom net_wm_window_type_notification = 0
 
static Atom net_wm_window_type_popup_menu = 0
 
static Atom net_wm_window_type_splash = 0
 
static Atom net_wm_window_type_toolbar = 0
 
static Atom net_wm_window_type_tooltip = 0
 
static Atom net_wm_window_type_utility = 0
 
static Atom net_workarea = 0
 
static const int netAtomCount = 89
 
static Bool netwm_atoms_created = False
 
const unsigned long netwm_sendevent_mask
 
static Atom UTF8_STRING = 0
 
static Atom wm_protocols = 0
 
static Atom wm_window_role = 0
 
static Atom xa_wm_state = 0
 

Macro Definition Documentation

◆ CHECK_TYPE_MASK

#define CHECK_TYPE_MASK (   type)
Value:
case type: \
if( mask & type##Mask ) \
return true; \
break;

Function Documentation

◆ create_netwm_atoms()

static void create_netwm_atoms ( Display *  d)
static

Definition at line 260 of file netwm.cpp.

◆ nstrdup()

static char * nstrdup ( const char *  s1)
static

Definition at line 166 of file netwm.cpp.

◆ nstrndup()

static char * nstrndup ( const char *  s1,
int  l 
)
static

Definition at line 176 of file netwm.cpp.

◆ nwindup()

static Window * nwindup ( const Window *  w1,
int  n 
)
static

Definition at line 186 of file netwm.cpp.

◆ readIcon()

static void readIcon ( Display *  display,
Window  window,
Atom  property,
NETRArray< NETIcon > &  icons,
int &  icon_count 
)
static

Definition at line 479 of file netwm.cpp.

◆ refdec_nri()

static void refdec_nri ( NETRootInfoPrivate *  p)
static

Definition at line 195 of file netwm.cpp.

◆ refdec_nwi()

static void refdec_nwi ( NETWinInfoPrivate *  p)
static

Definition at line 219 of file netwm.cpp.

◆ wcmp()

static int wcmp ( const void *  a,
const void *  b 
)
static

Definition at line 249 of file netwm.cpp.

Variable Documentation

◆ kde_net_wm_activities

Atom kde_net_wm_activities = 0
static

Definition at line 99 of file netwm.cpp.

◆ kde_net_wm_block_compositing

Atom kde_net_wm_block_compositing = 0
static

Definition at line 100 of file netwm.cpp.

◆ kde_net_wm_frame_overlap

Atom kde_net_wm_frame_overlap = 0
static

Definition at line 98 of file netwm.cpp.

◆ kde_net_wm_frame_strut

Atom kde_net_wm_frame_strut = 0
static

Definition at line 91 of file netwm.cpp.

◆ kde_net_wm_shadow

Atom kde_net_wm_shadow = 0
static

Definition at line 101 of file netwm.cpp.

◆ kde_net_wm_temporary_rules

Atom kde_net_wm_temporary_rules = 0
static

Definition at line 97 of file netwm.cpp.

◆ kde_net_wm_window_type_override

Atom kde_net_wm_window_type_override = 0
static

Definition at line 95 of file netwm.cpp.

◆ kde_net_wm_window_type_topmenu

Atom kde_net_wm_window_type_topmenu = 0
static

Definition at line 96 of file netwm.cpp.

◆ MAX_PROP_SIZE

const long MAX_PROP_SIZE = 100000

Definition at line 164 of file netwm.cpp.

◆ net_active_window

Atom net_active_window = 0
static

Definition at line 58 of file netwm.cpp.

◆ net_client_list

Atom net_client_list = 0
static

Definition at line 51 of file netwm.cpp.

◆ net_client_list_stacking

Atom net_client_list_stacking = 0
static

Definition at line 52 of file netwm.cpp.

◆ net_close_window

Atom net_close_window = 0
static

Definition at line 66 of file netwm.cpp.

◆ net_current_desktop

Atom net_current_desktop = 0
static

Definition at line 55 of file netwm.cpp.

◆ net_desktop_geometry

Atom net_desktop_geometry = 0
static

Definition at line 53 of file netwm.cpp.

◆ net_desktop_layout

Atom net_desktop_layout = 0
static

Definition at line 63 of file netwm.cpp.

◆ net_desktop_names

Atom net_desktop_names = 0
static

Definition at line 56 of file netwm.cpp.

◆ net_desktop_viewport

Atom net_desktop_viewport = 0
static

Definition at line 54 of file netwm.cpp.

◆ net_frame_extents

Atom net_frame_extents = 0
static

Definition at line 89 of file netwm.cpp.

◆ net_moveresize_window

Atom net_moveresize_window = 0
static

Definition at line 69 of file netwm.cpp.

◆ net_number_of_desktops

Atom net_number_of_desktops = 0
static

Definition at line 57 of file netwm.cpp.

◆ net_restack_window

Atom net_restack_window = 0
static

Definition at line 67 of file netwm.cpp.

◆ net_showing_desktop

Atom net_showing_desktop = 0
static

Definition at line 62 of file netwm.cpp.

◆ net_startup_id

Atom net_startup_id = 0
static

Definition at line 86 of file netwm.cpp.

◆ net_supported

Atom net_supported = 0
static

Definition at line 50 of file netwm.cpp.

◆ net_supporting_wm_check

Atom net_supporting_wm_check = 0
static

Definition at line 60 of file netwm.cpp.

◆ net_virtual_roots

Atom net_virtual_roots = 0
static

Definition at line 61 of file netwm.cpp.

◆ net_wm_action_change_desk

Atom net_wm_action_change_desk = 0
static

Definition at line 147 of file netwm.cpp.

◆ net_wm_action_close

Atom net_wm_action_close = 0
static

Definition at line 148 of file netwm.cpp.

◆ net_wm_action_fullscreen

Atom net_wm_action_fullscreen = 0
static

Definition at line 146 of file netwm.cpp.

◆ net_wm_action_max_horiz

Atom net_wm_action_max_horiz = 0
static

Definition at line 145 of file netwm.cpp.

◆ net_wm_action_max_vert

Atom net_wm_action_max_vert = 0
static

Definition at line 144 of file netwm.cpp.

◆ net_wm_action_minimize

Atom net_wm_action_minimize = 0
static

Definition at line 141 of file netwm.cpp.

◆ net_wm_action_move

Atom net_wm_action_move = 0
static

Definition at line 139 of file netwm.cpp.

◆ net_wm_action_resize

Atom net_wm_action_resize = 0
static

Definition at line 140 of file netwm.cpp.

◆ net_wm_action_shade

Atom net_wm_action_shade = 0
static

Definition at line 142 of file netwm.cpp.

◆ net_wm_action_stick

Atom net_wm_action_stick = 0
static

Definition at line 143 of file netwm.cpp.

◆ net_wm_allowed_actions

Atom net_wm_allowed_actions = 0
static

Definition at line 87 of file netwm.cpp.

◆ net_wm_desktop

Atom net_wm_desktop = 0
static

Definition at line 76 of file netwm.cpp.

◆ net_wm_extended_strut

Atom net_wm_extended_strut = 0
static

Definition at line 80 of file netwm.cpp.

◆ net_wm_full_placement

Atom net_wm_full_placement = 0
static

Definition at line 157 of file netwm.cpp.

◆ net_wm_fullscreen_monitors

Atom net_wm_fullscreen_monitors = 0
static

Definition at line 92 of file netwm.cpp.

◆ net_wm_handled_icons

Atom net_wm_handled_icons = 0
static

Definition at line 85 of file netwm.cpp.

◆ net_wm_icon

Atom net_wm_icon = 0
static

Definition at line 82 of file netwm.cpp.

◆ net_wm_icon_geometry

Atom net_wm_icon_geometry = 0
static

Definition at line 81 of file netwm.cpp.

◆ net_wm_icon_name

Atom net_wm_icon_name = 0
static

Definition at line 74 of file netwm.cpp.

◆ net_wm_moveresize

Atom net_wm_moveresize = 0
static

Definition at line 68 of file netwm.cpp.

◆ net_wm_name

Atom net_wm_name = 0
static

Definition at line 72 of file netwm.cpp.

◆ net_wm_pid

Atom net_wm_pid = 0
static

Definition at line 83 of file netwm.cpp.

◆ net_wm_ping

Atom net_wm_ping = 0
static

Definition at line 105 of file netwm.cpp.

◆ net_wm_state

Atom net_wm_state = 0
static

Definition at line 78 of file netwm.cpp.

◆ net_wm_state_above

Atom net_wm_state_above = 0
static

Definition at line 134 of file netwm.cpp.

◆ net_wm_state_below

Atom net_wm_state_below = 0
static

Definition at line 135 of file netwm.cpp.

◆ net_wm_state_demands_attention

Atom net_wm_state_demands_attention = 0
static

Definition at line 136 of file netwm.cpp.

◆ net_wm_state_fullscreen

Atom net_wm_state_fullscreen = 0
static

Definition at line 133 of file netwm.cpp.

◆ net_wm_state_hidden

Atom net_wm_state_hidden = 0
static

Definition at line 132 of file netwm.cpp.

◆ net_wm_state_max_horiz

Atom net_wm_state_max_horiz = 0
static

Definition at line 128 of file netwm.cpp.

◆ net_wm_state_max_vert

Atom net_wm_state_max_vert = 0
static

Definition at line 127 of file netwm.cpp.

◆ net_wm_state_modal

Atom net_wm_state_modal = 0
static

Definition at line 125 of file netwm.cpp.

◆ net_wm_state_shaded

Atom net_wm_state_shaded = 0
static

Definition at line 129 of file netwm.cpp.

◆ net_wm_state_skip_pager

Atom net_wm_state_skip_pager = 0
static

Definition at line 131 of file netwm.cpp.

◆ net_wm_state_skip_taskbar

Atom net_wm_state_skip_taskbar = 0
static

Definition at line 130 of file netwm.cpp.

◆ net_wm_state_stays_on_top

Atom net_wm_state_stays_on_top = 0
static

Definition at line 151 of file netwm.cpp.

◆ net_wm_state_sticky

Atom net_wm_state_sticky = 0
static

Definition at line 126 of file netwm.cpp.

◆ net_wm_strut

Atom net_wm_strut = 0
static

Definition at line 79 of file netwm.cpp.

◆ net_wm_take_activity

Atom net_wm_take_activity = 0
static

Definition at line 106 of file netwm.cpp.

◆ net_wm_user_time

Atom net_wm_user_time = 0
static

Definition at line 84 of file netwm.cpp.

◆ net_wm_visible_icon_name

Atom net_wm_visible_icon_name = 0
static

Definition at line 75 of file netwm.cpp.

◆ net_wm_visible_name

Atom net_wm_visible_name = 0
static

Definition at line 73 of file netwm.cpp.

◆ net_wm_window_opacity

Atom net_wm_window_opacity = 0
static

Definition at line 90 of file netwm.cpp.

◆ net_wm_window_type

Atom net_wm_window_type = 0
static

Definition at line 77 of file netwm.cpp.

◆ net_wm_window_type_combobox

Atom net_wm_window_type_combobox = 0
static

Definition at line 121 of file netwm.cpp.

◆ net_wm_window_type_desktop

Atom net_wm_window_type_desktop = 0
static

Definition at line 110 of file netwm.cpp.

◆ net_wm_window_type_dialog

Atom net_wm_window_type_dialog = 0
static

Definition at line 114 of file netwm.cpp.

◆ net_wm_window_type_dnd

Atom net_wm_window_type_dnd = 0
static

Definition at line 122 of file netwm.cpp.

◆ net_wm_window_type_dock

Atom net_wm_window_type_dock = 0
static

Definition at line 111 of file netwm.cpp.

◆ net_wm_window_type_dropdown_menu

Atom net_wm_window_type_dropdown_menu = 0
static

Definition at line 117 of file netwm.cpp.

◆ net_wm_window_type_menu

Atom net_wm_window_type_menu = 0
static

Definition at line 113 of file netwm.cpp.

◆ net_wm_window_type_normal

Atom net_wm_window_type_normal = 0
static

Definition at line 109 of file netwm.cpp.

◆ net_wm_window_type_notification

Atom net_wm_window_type_notification = 0
static

Definition at line 120 of file netwm.cpp.

◆ net_wm_window_type_popup_menu

Atom net_wm_window_type_popup_menu = 0
static

Definition at line 118 of file netwm.cpp.

◆ net_wm_window_type_splash

Atom net_wm_window_type_splash = 0
static

Definition at line 116 of file netwm.cpp.

◆ net_wm_window_type_toolbar

Atom net_wm_window_type_toolbar = 0
static

Definition at line 112 of file netwm.cpp.

◆ net_wm_window_type_tooltip

Atom net_wm_window_type_tooltip = 0
static

Definition at line 119 of file netwm.cpp.

◆ net_wm_window_type_utility

Atom net_wm_window_type_utility = 0
static

Definition at line 115 of file netwm.cpp.

◆ net_workarea

Atom net_workarea = 0
static

Definition at line 59 of file netwm.cpp.

◆ netAtomCount

const int netAtomCount = 89
static

Definition at line 259 of file netwm.cpp.

◆ netwm_atoms_created

Bool netwm_atoms_created = False
static

Definition at line 159 of file netwm.cpp.

◆ netwm_sendevent_mask

const unsigned long netwm_sendevent_mask
Initial value:
= (SubstructureRedirectMask|
SubstructureNotifyMask)

Definition at line 160 of file netwm.cpp.

◆ UTF8_STRING

Atom UTF8_STRING = 0
static

Definition at line 47 of file netwm.cpp.

◆ wm_protocols

Atom wm_protocols = 0
static

Definition at line 104 of file netwm.cpp.

◆ wm_window_role

Atom wm_window_role = 0
static

Definition at line 88 of file netwm.cpp.

◆ xa_wm_state

Atom xa_wm_state = 0
static

Definition at line 154 of file netwm.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal