]> Dogcows Code - chaz/openbox/blob - src/client.hh
6c9b74e5832c62e44f6ca0b5b341c0baa5e0d036
[chaz/openbox] / src / client.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __client_hh
3 #define __client_hh
4
5 /*! @file client.hh
6 @brief The Client class maintains the state of a client window by handling
7 property changes on the window and some client messages
8 */
9
10 #include "screen.hh"
11 #include "otk/strut.hh"
12 #include "otk/rect.hh"
13 #include "otk/eventhandler.hh"
14 #include "otk/ustring.hh"
15
16 extern "C" {
17 #include <X11/Xlib.h>
18
19 #ifdef SHAPE
20 #include <X11/extensions/shape.h>
21 #endif // SHAPE
22 }
23
24 #include <string>
25 #include <list>
26
27 namespace ob {
28
29 class Frame;
30 class Screen;
31
32 struct Icon {
33 unsigned long w, h;
34 unsigned long *data;
35 };
36
37 //! The MWM Hints as retrieved from the window property
38 /*!
39 This structure only contains 3 elements, even though the Motif 2.0
40 structure contains 5. We only use the first 3, so that is all gets defined.
41 */
42 struct MwmHints {
43 unsigned long flags; //!< A bitmask of Client::MwmFlags values
44 unsigned long functions; //!< A bitmask of Client::MwmFunctions values
45 unsigned long decorations;//!< A bitmask of Client::MwmDecorations values
46 //! The number of elements in the Client::MwmHints struct
47 static const unsigned int elements = 3;
48 };
49
50 //! Maintains the state of a client window.
51 /*!
52 Client maintains the state of a client window. The state consists of the
53 hints that the application sets on the window, such as the title, or window
54 gravity.
55 <p>
56 Client also manages client messages for the client window. When the
57 application (or any application) requests something to be changed for the
58 client, it will call the ActionHandler (for client messages) or update the
59 class' member variables and call whatever is nessary to complete the
60 change (such as causing a redraw of the titlebar after the title is changed).
61 */
62 class Client : public otk::EventHandler {
63 public:
64
65 //! The frame window which decorates around the client window
66 /*!
67 NOTE: This should NEVER be used inside the client class's constructor!
68 */
69 Frame *frame;
70
71 //! Holds a list of Clients
72 typedef std::list<Client*> List;
73
74 //! The possible stacking layers a client window can be a part of
75 enum StackLayer {
76 Layer_Icon, //!< 0 - iconified windows, in any order at all
77 Layer_Desktop, //!< 1 - desktop windows
78 Layer_Below, //!< 2 - normal windows w/ below
79 Layer_Normal, //!< 3 - normal windows
80 Layer_Above, //!< 4 - normal windows w/ above
81 Layer_Top, //!< 5 - always-on-top-windows (docks?)
82 Layer_Fullscreen, //!< 6 - fullscreeen windows
83 Layer_Internal, //!< 7 - openbox windows/menus
84 NUM_LAYERS
85 };
86
87 //! Corners of the client window, used for anchor positions
88 enum Corner { TopLeft,
89 TopRight,
90 BottomLeft,
91 BottomRight };
92
93 //! Possible window types
94 enum WindowType { Type_Desktop, //!< A desktop (bottom-most window)
95 Type_Dock, //!< A dock bar/panel window
96 Type_Toolbar, //!< A toolbar window, pulled off an app
97 Type_Menu, //!< An unpinned menu from an app
98 Type_Utility, //!< A small utility window such as a palette
99 Type_Splash, //!< A splash screen window
100 Type_Dialog, //!< A dialog window
101 Type_Normal //!< A normal application window
102 };
103
104 //! Possible flags for MWM Hints (defined by Motif 2.0)
105 enum MwmFlags { MwmFlag_Functions = 1 << 0, //!< The MMW Hints define funcs
106 MwmFlag_Decorations = 1 << 1 //!< The MWM Hints define decor
107 };
108
109 //! Possible functions for MWM Hints (defined by Motif 2.0)
110 enum MwmFunctions { MwmFunc_All = 1 << 0, //!< All functions
111 MwmFunc_Resize = 1 << 1, //!< Allow resizing
112 MwmFunc_Move = 1 << 2, //!< Allow moving
113 MwmFunc_Iconify = 1 << 3, //!< Allow to be iconfied
114 MwmFunc_Maximize = 1 << 4 //!< Allow to be maximized
115 //MwmFunc_Close = 1 << 5 //!< Allow to be closed
116 };
117
118 //! Possible decorations for MWM Hints (defined by Motif 2.0)
119 enum MemDecorations { MwmDecor_All = 1 << 0, //!< All decorations
120 MwmDecor_Border = 1 << 1, //!< Show a border
121 MwmDecor_Handle = 1 << 2, //!< Show a handle (bottom)
122 MwmDecor_Title = 1 << 3, //!< Show a titlebar
123 //MwmDecor_Menu = 1 << 4, //!< Show a menu
124 MwmDecor_Iconify = 1 << 5, //!< Show an iconify button
125 MwmDecor_Maximize = 1 << 6 //!< Show a maximize button
126 };
127
128 //! The things the user can do to the client window
129 enum Function { Func_Resize = 1 << 0, //!< Allow resizing
130 Func_Move = 1 << 1, //!< Allow moving
131 Func_Iconify = 1 << 2, //!< Allow to be iconified
132 Func_Maximize = 1 << 3, //!< Allow to be maximized
133 Func_Shade = 1 << 4, //!< Allow to be shaded
134 Func_Fullscreen = 1 << 5, //!< Allow to be made fullscreen
135 Func_Close = 1 << 6 //!< Allow to be closed
136 };
137 //! Holds a bitmask of Client::Function values
138 typedef unsigned char FunctionFlags;
139
140 //! The decorations the client window wants to be displayed on it
141 enum Decoration { Decor_Titlebar = 1 << 0, //!< Display a titlebar
142 Decor_Handle = 1 << 1, //!< Display a handle (bottom)
143 Decor_Border = 1 << 2, //!< Display a border
144 Decor_Iconify = 1 << 3, //!< Display an iconify button
145 Decor_Maximize = 1 << 4, //!< Display a maximize button
146 //! Display a button to toggle the window's placement on
147 //! all desktops
148 Decor_AllDesktops = 1 << 5,
149 Decor_Close = 1 << 6 //!< Display a close button
150 };
151 //! Holds a bitmask of Client::Decoration values
152 typedef unsigned char DecorationFlags;
153
154 //! Possible actions that can be made with the _NET_WM_STATE client message
155 enum StateAction { State_Remove = 0, //!< _NET_WM_STATE_REMOVE
156 State_Add, //!< _NET_WM_STATE_ADD
157 State_Toggle //!< _NET_WM_STATE_TOGGLE
158 };
159
160 //! The event mask to grab on client windows
161 static const long event_mask = PropertyChangeMask | FocusChangeMask |
162 StructureNotifyMask;
163
164 //! The mask of events to not let propogate past the client
165 /*!
166 This makes things like xprop work on the client window, but means we have
167 to explicitly grab clicks that we want.
168 */
169 static const long no_propagate_mask = ButtonPressMask | ButtonReleaseMask |
170 ButtonMotionMask;
171
172 //! The number of unmap events to ignore on the window
173 int ignore_unmaps;
174
175 private:
176 //! The screen number on which the client resides
177 int _screen;
178
179 //! The actual window that this class is wrapping up
180 Window _window;
181
182 //! The id of the group the window belongs to
183 Window _group;
184
185 //! The client which this client is a transient (child) for
186 Client *_transient_for;
187
188 //! The clients which are transients (children) of this client
189 Client::List _transients;
190
191 //! The desktop on which the window resides (0xffffffff for all desktops)
192 unsigned int _desktop;
193
194 //! Normal window title
195 otk::ustring _title;
196 //! Window title when iconifiged
197 otk::ustring _icon_title;
198
199 //! The application that created the window
200 std::string _app_name;
201 //! The class of the window, can used for grouping
202 std::string _app_class;
203 //! The specified role of the window, used for identification
204 std::string _role;
205
206 //! The type of window (what its function is)
207 WindowType _type;
208
209 //! Position and size of the window
210 /*!
211 This will not always be the actual position of the window on screen, it is
212 rather, the position requested by the client, to which the window's gravity
213 is applied.
214 */
215 otk::Rect _area;
216
217 //! The window's strut
218 /*!
219 The strut defines areas of the screen that are marked off-bounds for window
220 placement. In theory, where this window exists.
221 */
222 otk::Strut _strut;
223
224 //! The logical size of the window
225 /*!
226 The "logical" size of the window is refers to the user's perception of the
227 size of the window, and is the value that should be displayed to the user.
228 For example, with xterms, this value it the number of characters being
229 displayed in the terminal, instead of the number of pixels.
230 */
231 otk::Size _logical_size;
232
233 //! Width of the border on the window.
234 /*!
235 The window manager will set this to 0 while the window is being managed,
236 but needs to restore it afterwards, so it is saved here.
237 */
238 int _border_width;
239
240 //! The minimum aspect ratio the client window can be sized to.
241 /*!
242 A value of 0 means this is ignored.
243 */
244 float _min_ratio;
245 //! The maximum aspect ratio the client window can be sized to.
246 /*!
247 A value of 0 means this is ignored.
248 */
249 float _max_ratio;
250
251 //! The minimum size of the client window
252 /*!
253 If the min is > the max, then the window is not resizable
254 */
255 otk::Size _min_size;
256 //! The maximum size of the client window
257 /*!
258 If the min is > the max, then the window is not resizable
259 */
260 otk::Size _max_size;
261 //! The size of increments to resize the client window by
262 otk::Size _size_inc;
263 //! The base size of the client window
264 /*!
265 This value should be subtracted from the window's actual size when
266 displaying its size to the user, or working with its min/max size
267 */
268 otk::Size _base_size;
269
270 //! Window decoration and functionality hints
271 MwmHints _mwmhints;
272
273 //! Where to place the decorated window in relation to the undecorated window
274 int _gravity;
275
276 //! The state of the window, one of WithdrawnState, IconicState, or
277 //! NormalState
278 long _wmstate;
279
280 //! True if the client supports the delete_window protocol
281 bool _delete_window;
282
283 //! Was the window's position requested by the application? if not, we should
284 //! place the window ourselves when it first appears
285 bool _positioned;
286
287 //! Can the window receive input focus?
288 bool _can_focus;
289 //! Urgency flag
290 bool _urgent;
291 //! Notify the window when it receives focus?
292 bool _focus_notify;
293 //! Does the client window have the input focus?
294 bool _focused;
295
296 //! The window uses shape extension to be non-rectangular?
297 bool _shaped;
298
299 //! The window is modal, so it must be processed before any windows it is
300 //! related to can be focused
301 bool _modal;
302 //! Only the window's titlebar is displayed
303 bool _shaded;
304 //! The window is iconified
305 bool _iconic;
306 //! The window is maximized to fill the screen vertically
307 bool _max_vert;
308 //! The window is maximized to fill the screen horizontally
309 bool _max_horz;
310 //! The window should not be displayed by pagers
311 bool _skip_pager;
312 //! The window should not be displayed by taskbars
313 bool _skip_taskbar;
314 //! The window is a 'fullscreen' window, and should be on top of all others
315 bool _fullscreen;
316 //! The window should be on top of other windows of the same type
317 bool _above;
318 //! The window should be underneath other windows of the same type
319 bool _below;
320
321 //! The layer in which the window will be stacked, windows in lower layers
322 //! are always below windows in higher layers.
323 StackLayer _layer;
324
325 //! A bitmask of values in the Client::Decoration enum
326 /*!
327 The values in the variable are the decorations that the client wants to be
328 displayed around it.
329 */
330 DecorationFlags _decorations;
331
332 //! A bitmask of values in the Client::Decoration enum.
333 /*!
334 Specifies the decorations that should NOT be displayed on the client.
335 */
336 DecorationFlags _disabled_decorations;
337
338 //! A bitmask of values in the Client::Function enum
339 /*!
340 The values in the variable specify the ways in which the user is allowed to
341 modify this window.
342 */
343 FunctionFlags _functions;
344
345 //! Retrieves the window's initial gravity
346 void getGravity();
347 //! Retrieves the desktop hint's value and sets Client::_desktop
348 void getDesktop();
349 //! Retrieves the window's type and sets Client::_type
350 void getType();
351 //! Gets the MWM Hints and adjusts Client::_functions and
352 //! Client::_decorations
353 void getMwmHints();
354 //! Gets the position and size of the window and sets Client::_area
355 void getArea();
356 //! Gets the net_state hint and sets the boolean flags for any states set in
357 //! the hint
358 void getState();
359 //! Determines if the window uses the Shape extension and sets
360 //! Client::_shaped
361 void getShaped();
362
363 //! Set up what decor should be shown on the window and what functions should
364 //! be allowed (Client::_decorations and Client::_functions).
365 /*!
366 This also updates the NET_WM_ALLOWED_ACTIONS hint.
367 */
368 void setupDecorAndFunctions();
369
370 //! Sets the wm_state to the specified value
371 void setWMState(long state);
372 //! Adjusts the window's net_state
373 /*!
374 This should not be called as part of the window mapping process! It is for
375 use when updating the state post-mapping.<br>
376 Client::applyStartupState is used to do the same things during the mapping
377 process.
378 */
379 void setState(StateAction action, long data1, long data2);
380
381 //! Sends the window to the specified desktop
382 void setDesktop(unsigned int desktop);
383
384 //! Calculates the stacking layer for the client window
385 void calcLayer();
386
387 //! Update the protocols that the window supports and adjusts things if they
388 //! change
389 void updateProtocols();
390 //! Updates the WMNormalHints and adjusts things if they change
391 void updateNormalHints();
392 //! Updates the WMHints and adjusts things if they change
393 /*!
394 @param initstate Whether to read the initial_state property from the
395 WMHints. This should only be used during the mapping
396 process.
397 */
398 void updateWMHints(bool initstate = false);
399 //! Updates the window's title
400 void updateTitle();
401 //! Updates the window's icon title
402 void updateIconTitle();
403 //! Updates the window's application name and class
404 void updateClass();
405 //! Updates the strut for the client
406 void updateStrut();
407 //! Updates the window's transient status, and any parents of it
408 void updateTransientFor();
409
410 //! Change the client's state hints to match the class' data
411 void changeState();
412 //! Change the allowed actions set on the client
413 void changeAllowedActions();
414
415 //! Request the client to close its window.
416 void close();
417
418 //! Shades or unshades the client window
419 /*!
420 @param shade true if the window should be shaded; false if it should be
421 unshaded.
422 */
423 void shade(bool shade);
424
425 //! Recursively searches the client 'tree' for a modal client, always skips
426 //! the topmost node (the window you're starting with).
427 Client *Client::searchModalTree(Client *node, Client *skip);
428
429 //! Fires the urgent callbacks which lets the user do what they want with
430 //! urgent windows
431 void fireUrgent();
432
433 //! Fullscreen's or unfullscreen's the client window
434 /*!
435 @param fs true if the window should be made fullscreen; false if it should
436 be returned to normal state.
437 @param savearea true to have the client's current size and position saved;
438 otherwise, they are not. You should not save when mapping a
439 new window that is set to fullscreen. This has no effect
440 when restoring a window from fullscreen.
441 */
442 void fullscreen(bool fs, bool savearea = true);
443
444 //! Iconifies or uniconifies the client window
445 /*!
446 @param iconic true if the window should be iconified; false if it should be
447 restored.
448 @param curdesk If iconic is false, then this determines if the window will
449 be uniconified to the current viewable desktop (true) or to
450 its previous desktop (false)
451 */
452 void iconify(bool iconic, bool curdesk = true);
453
454 //! Maximize or unmaximize the client window
455 /*!
456 @param max true if the window should be maximized; false if it should be
457 returned to normal size.
458 @param dir 0 to set both horz and vert, 1 to set horz, 2 to set vert.
459 @param savearea true to have the client's current size and position saved;
460 otherwise, they are not. You should not save when mapping a
461 new window that is set to fullscreen. This has no effect
462 when unmaximizing a window.
463 */
464 void maximize(bool max, int dir, bool savearea = true);
465
466 //! Internal version of the Client::move function
467 /*!
468 @param x The X coordinate to move to.
469 @param y The Y coordinate to move to.
470 */
471 void internal_move(int x, int y);
472 //! Internal version of the Client::resize function
473 /*!
474 This also maintains things like the client's minsize, and size increments.
475 @param anchor The corner to keep in the same position when resizing.
476 @param w The width component of the new size for the client.
477 @param h The height component of the new size for the client.
478 @param user Specifies whether this is a user-requested change or a
479 program requested change.
480 @param x An optional X coordinate to which the window will be moved
481 after resizing.
482 @param y An optional Y coordinate to which the window will be moved
483 after resizing.
484 The x and y coordinates must both be sepcified together, or they will have
485 no effect. When they are specified, the anchor is ignored.
486 */
487 void internal_resize(Corner anchor, int w, int h,
488 bool user = true, int x = INT_MIN, int y = INT_MIN);
489
490 //! Removes or reapplies the client's border to its window
491 /*!
492 Used when managing and unmanaging a window.
493 @param addborder true if adding the border to the client; false if removing
494 from the client
495 */
496 void toggleClientBorder(bool addborder);
497
498 //! Applies the states requested when the window mapped
499 /*!
500 This should be called only once, during the window mapping process. It
501 applies things like maximized, and fullscreen.
502 */
503 void applyStartupState();
504
505 public:
506 #ifndef SWIG
507 //! Constructs a new Client object around a specified window id
508 /*!
509 BB @param window The window id that the Client class should handle
510 @param screen The screen on which the window resides
511 */
512 Client(int screen, Window window);
513 //! Destroys the Client object
514 virtual ~Client();
515 #endif
516
517 //! Returns the screen on which the clien resides
518 inline int screen() const { return _screen; }
519
520 //! Returns the window id that the Client object is handling
521 inline Window window() const { return _window; }
522
523 //! Returns the type of the window, one of the Client::WindowType values
524 inline WindowType type() const { return _type; }
525 //! Returns if the window should be treated as a normal window.
526 /*!
527 Some windows (desktops, docks, splash screens) have special rules applied
528 to them in a number of places regarding focus or user interaction.
529 */
530 inline bool normal() const {
531 return ! (_type == Type_Desktop || _type == Type_Dock ||
532 _type == Type_Splash);
533 }
534
535 //! Returns the desktop on which the window resides
536 /*!
537 This value is a 0-based index.<br>
538 A value of 0xffffffff indicates that the window exists on all desktops.
539 */
540 inline unsigned int desktop() const { return _desktop; }
541 //! Returns the window's title
542 inline const otk::ustring &title() const { return _title; }
543 //! Returns the window's title when it is iconified
544 inline const otk::ustring &iconTitle() const { return _title; }
545 //! Returns the application's name to whom the window belongs
546 inline const std::string &appName() const { return _app_name; }
547 //! Returns the class of the window
548 inline const std::string &appClass() const { return _app_class; }
549 //! Returns the program-specified role of the window
550 inline const std::string &role() const { return _role; }
551 //! Returns if the window can be focused
552 /*!
553 @return true if the window can receive focus; otherwise, false
554 */
555 inline bool canFocus() const { return _can_focus; }
556 //! Returns if the window has indicated that it needs urgent attention
557 inline bool urgent() const { return _urgent; }
558 //! Returns if the window wants to be notified when it receives focus
559 inline bool focusNotify() const { return _focus_notify; }
560 //! Returns if the window is the focused window
561 inline bool focused() const { return _focused; }
562 //! Returns if the window uses the Shape extension
563 inline bool shaped() const { return _shaped; }
564 //! Returns the window's gravity
565 /*!
566 This value determines where to place the decorated window in relation to
567 its position without decorations.<br>
568 One of: NorthWestGravity, SouthWestGravity, EastGravity, ...,
569 SouthGravity, StaticGravity, ForgetGravity
570 */
571 inline int gravity() const { return _gravity; }
572 //! Returns if the application requested the initial position for the window
573 /*!
574 If the application did not request a position (this function returns false)
575 then the window should be placed intelligently by the window manager
576 initially
577 */
578 inline bool positionRequested() const { return _positioned; }
579 //! Returns the decorations that the client window wishes to be displayed on
580 //! it
581 inline DecorationFlags decorations() const { return _decorations; }
582 //! Returns the decorations that the user has requested to be disabled on the
583 //! client
584 inline DecorationFlags disabledDecorations() const
585 { return _disabled_decorations; }
586 //! Returns the functions that the user can perform on the window
587 inline FunctionFlags funtions() const { return _functions; }
588
589 //! Return the client this window is transient for
590 inline Client *transientFor() const { return _transient_for; }
591
592 //! Returns if the window is modal
593 /*!
594 If the window is modal, then no other windows that it is related to can get
595 focus while it exists/remains modal.
596 */
597 inline bool modal() const { return _modal; }
598 //! The window should not be displayed by pagers
599 inline bool skipPager() const { return _skip_pager; }
600 //! The window should not be displayed by taskbars
601 inline bool skipTaskbar() const { return _skip_taskbar; }
602 //! Returns if the window is shaded
603 /*!
604 When the window is shaded, only its titlebar is visible.
605 */
606 inline bool shaded() const { return _shaded; }
607 //! Returns if the window is in fullscreen mode
608 inline bool fullscreen() const { return _fullscreen; }
609 //! Returns if the window is iconified
610 /*!
611 When the window is iconified, it is not visible at all (except in iconbars/
612 panels/etc that want to show lists of iconified windows
613 */
614 inline bool iconic() const { return _iconic; }
615 //! Returns if the window is maximized vertically
616 inline bool maxVert() const { return _max_vert; }
617 //! Returns if the window is maximized horizontally
618 inline bool maxHorz() const { return _max_horz; }
619 //! Returns the window's stacking layer
620 inline StackLayer layer() const { return _layer; }
621
622 //! Returns the logical size of the window
623 /*!
624 The "logical" size of the window is refers to the user's perception of the
625 size of the window, and is the value that should be displayed to the user.
626 For example, with xterms, this value it the number of characters being
627 displayed in the terminal, instead of the number of pixels.
628 */
629 const otk::Size &logicalSize() const { return _logical_size; }
630
631 //! Returns the position and size of the client relative to the root window
632 /*!
633 Note that this value is *not* the size and position of the window's
634 frame, though the position will often line up.<br>
635 If you want the frame's area, use Frame::area() instead.
636 */
637 inline const otk::Rect &area() const { return _area; }
638
639 //! Returns the client's strut definition
640 inline const otk::Strut &strut() const { return _strut; }
641
642 //! Move the window (actually, its frame) to a position.
643 /*!
644 This moves the window so that the top-left corner of its frame will be at
645 the position specified.
646 @param x The X coordinate to move to.
647 @param y The Y coordinate to move to.
648 */
649 void move(int x, int y);
650
651 //! Resizes the client window, anchoring it in a given corner
652 /*!
653 This also maintains things like the client's minsize, and size increments.
654 @param anchor The corner to keep in the same position when resizing.
655 @param w The width component of the new size for the client.
656 @param h The height component of the new size for the client.
657 */
658 void resize(Corner anchor, int w, int h);
659
660 //! Reapplies the maximized state to the window
661 /*!
662 Use this to make the window readjust its maximized size to new
663 surroundings (struts, etc).
664 */
665 void remaximize();
666
667 //! Shows the window if it should be shown, or hides it
668 /*!
669 Used when changing desktops, the window's state, etc.
670 */
671 void showhide();
672
673 //! Choose a mask of decorations to not display on the client
674 /*!
675 Pass a value of 0 to the function to turn all decorations back on. Note
676 that you cannot add decorations to a window with this, you can only remove
677 decorations that would otherwise have been displayed.
678 @param flags The mask of values from Client::Decoration to specify which
679 decorations should not be displayed.
680 */
681 void disableDecorations(DecorationFlags flags);
682
683 //! Return a modal child of the client window
684 /*!
685 @return A modal child of the client window, or 0 if none was found.
686 */
687 Client *findModalChild();
688
689 //! Attempt to focus the client window
690 bool focus();
691
692 //! Remove focus from the client window
693 void unfocus() const;
694
695 //! Validate client, by making sure no Destroy or Unmap events exist in
696 //! the event queue for the window.
697 /*!
698 @return true if the client is valid; false if the client has already
699 been unmapped/destroyed, and so is invalid.
700 */
701 bool validate() const;
702
703 void installColormap(bool install) const;
704
705 virtual void focusHandler(const XFocusChangeEvent &e);
706 virtual void unfocusHandler(const XFocusChangeEvent &e);
707 virtual void propertyHandler(const XPropertyEvent &e);
708 virtual void clientMessageHandler(const XClientMessageEvent &e);
709 virtual void configureRequestHandler(const XConfigureRequestEvent &e);
710 virtual void unmapHandler(const XUnmapEvent &e);
711 virtual void destroyHandler(const XDestroyWindowEvent &e);
712 virtual void reparentHandler(const XReparentEvent &e);
713 virtual void mapRequestHandler(const XMapRequestEvent &e);
714 #if defined(SHAPE)
715 virtual void shapeHandler(const XShapeEvent &e);
716 #endif // SHAPE
717
718 friend void Screen::manageWindow(Window);
719 friend void Screen::unmanageWindow(Client *);
720 };
721
722 }
723
724 #endif // __client_hh
This page took 0.069128 seconds and 4 git commands to generate.