diff --git a/contrib/factory/factory.factor b/contrib/factory/factory.factor index 3b87a35a7e..5a31297bc2 100644 --- a/contrib/factory/factory.factor +++ b/contrib/factory/factory.factor @@ -649,6 +649,8 @@ SYMBOL: window-list root get [ grab-keys ] with-win "WM_PROTOCOLS" False intern-atom WM_PROTOCOLS set "WM_DELETE_WINDOW" False intern-atom WM_DELETE_WINDOW set + "cornflowerblue" lookup-color menu-enter-color set + "white" lookup-color menu-leave-color set setup-root-menu setup-window-list setup-workspace-menu diff --git a/contrib/x11/concurrent-widgets.factor b/contrib/x11/concurrent-widgets.factor index aeccc70bad..5f40809d01 100644 --- a/contrib/x11/concurrent-widgets.factor +++ b/contrib/x11/concurrent-widgets.factor @@ -1,5 +1,5 @@ USING: io namespaces kernel hashtables math generic threads concurrency - sequences arrays x11 x ; +sequences arrays x11 x ; IN: concurrent-widgets @@ -7,12 +7,7 @@ IN: concurrent-widgets TUPLE: window display id ; -! dpy get create-window - -! window-object [ { 100 100 } move-window ] with-window-object - -: create-window-object - dpy get create-window ; +: create-window-object ( -- ) dpy get create-window ; : with-window-object ( quot -- ) [ swap dup window-display dpy set window-id win set call ] with-scope ; inline @@ -25,8 +20,7 @@ SYMBOL: window-table 10 window-table set-global -: add-to-window-table ( -- ) -dup window-id window-table get set-hash ; +: add-to-window-table ( -- ) dup window-id window-table get set-hash ; : clean-window-table ( -- ) window-table get @@ -99,6 +93,12 @@ M: window handle-key-press-event ( event obj -- ) M: window handle-key-release-event ( event obj -- ) "Basic handle-key-release-event called" print flush drop drop ; +M: window handle-enter-window-event ( event obj -- ) + "Basic handle-enter-window-event called" print flush drop drop ; + +M: window handle-leave-window-event ( event obj -- ) + "Basic handle-leave-window-event called" print flush drop drop ; + ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !