Skip to content

Commit

Permalink
Add skip pager hint
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-keyboard@1157 b067294f-1dea-0310-9683-c47a78595994
  • Loading branch information
mallum committed May 17, 2005
1 parent 2af94d7 commit d8a1422
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2005-05-17 mallum,,, <[email protected]>

* src/matchbox-keyboard-ui.c: (mb_kbd_ui_resources_create):
Add SKIP_PAGER hint.

2005-05-10 mallum,,, <[email protected]>

* src/matchbox-keyboard-ui.c: (mb_kbd_ui_resources_create):
Expand Down
23 changes: 14 additions & 9 deletions src/matchbox-keyboard-ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,14 +723,16 @@ mb_kbd_ui_resources_create(MBKeyboardUI *ui)
unsigned long status;
} PropMotifWmHints ;


Atom /* atom_wm_protocols[3], */
atom_NET_WM_WINDOW_TYPE,
atom_NET_WM_WINDOW_TYPE_TOOLBAR,
atom_NET_WM_WINDOW_TYPE_DOCK,
atom_NET_WM_STRUT_PARTIAL,
atom_NET_WM_STATE_SKIP_TASKBAR,
atom_NET_WM_STATE,
atom_MOTIF_WM_HINTS;
atom_NET_WM_WINDOW_TYPE,
atom_NET_WM_WINDOW_TYPE_TOOLBAR,
atom_NET_WM_WINDOW_TYPE_DOCK,
atom_NET_WM_STRUT_PARTIAL,
atom_NET_WM_STATE_SKIP_PAGER,
atom_NET_WM_STATE_SKIP_TASKBAR,
atom_NET_WM_STATE,
atom_MOTIF_WM_HINTS;


PropMotifWmHints *mwm_hints;
Expand Down Expand Up @@ -768,6 +770,9 @@ mb_kbd_ui_resources_create(MBKeyboardUI *ui)
atom_NET_WM_STATE_SKIP_TASKBAR =
XInternAtom(ui->xdpy, "_NET_WM_STATE_SKIP_TASKBAR", False);

atom_NET_WM_STATE_SKIP_PAGER =
XInternAtom(ui->xdpy, "_NET_WM_STATE_SKIP_PAGER", False);

atom_NET_WM_STATE =
XInternAtom(ui->xdpy, "_NET_WM_STATE", False);

Expand Down Expand Up @@ -847,13 +852,13 @@ mb_kbd_ui_resources_create(MBKeyboardUI *ui)
0, /* bottom_start_x */
1399 }; /* bottom_end_x */

Atom states[] = { atom_NET_WM_STATE_SKIP_TASKBAR };
Atom states[] = { atom_NET_WM_STATE_SKIP_TASKBAR, atom_NET_WM_STATE_SKIP_PAGER };
int desk_width = 0, desk_height = 0, desk_y = 0;

XChangeProperty(ui->xdpy, ui->xwin,
atom_NET_WM_STATE, XA_ATOM, 32,
PropModeReplace,
(unsigned char *)states, 1);
(unsigned char *)states, 2);

if (get_desktop_area(ui, NULL, &desk_y, &desk_width, &desk_height))
{
Expand Down

0 comments on commit d8a1422

Please sign in to comment.