Skip to content

Commit

Permalink
Lock focus when showing context menu in tasinput
Browse files Browse the repository at this point in the history
  • Loading branch information
Madghostek committed Mar 15, 2021
1 parent adc9139 commit 0250544
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasinput_plugin/src/DefDI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1592,8 +1592,9 @@ bool ShowContextMenu(HWND hwnd,HWND hitwnd, int x, int y)
AppendMenu(hMenu, menuConfig.onTop ? MF_CHECKED : 0, OnTop, "Stay on top");
//AppendMenu(hMenu, 1, 2, "B");
//AppendMenu(hMenu, 0, 3, "C");

lock = true;
int res = TrackPopupMenuEx(hMenu, TPM_RETURNCMD | TPM_NONOTIFY, x, y, hwnd, 0);
lock = false;
printf("trackmenu result %d\n",res);
switch (res){
case OnTop:
Expand Down

0 comments on commit 0250544

Please sign in to comment.